package hhm.android.my

import android.os.Bundle
import android.view.View
import android.widget.LinearLayout
import com.alibaba.android.arouter.launcher.ARouter
import hhm.android.library.utils.OnMultiClickListener
import siau.android.base.SBApplication
import siau.android.base.SBBaseActivity
import siau.android.base.WEBVIEW_ROUTER
import siau.android.library.KeyString

class PrivacyActivity : SBBaseActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setTitleWhiteAndTextBlank()
        setContentView(R.layout.activity_privacy)
        initTitle(getString(R.string.privacy))

        findViewById<LinearLayout>(R.id.activity_privacy_agreement).setOnClickListener(object : OnMultiClickListener() {
            override fun onMultiClick(v: View?) {
                ARouter.getInstance().build(WEBVIEW_ROUTER).withString(KeyString.url, SBApplication.privacyString).navigation()
            }
        })
    }
}